package com.silence.gmall.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * @Author silence
 * @Date 2025-09-05 15:19
 * @Email 792245022@qq.com
 * @Version 1.0
 * @Description 项目字符串常量类
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class ProductRedisStringConstant {

    /**
     * 缓存数据为空时的标记值
     */
    public static final String TEMP_REDIS_DATA = "x";

    /**
     * 分类树 redis key
     */
    public static final String PRODUCT_CATEGORY_TREE_REDIS_KEY = "PRODUCT:CATEGORY:TREE";

    /**
     * sku 主键集合 redis key
     */
    public static final String PRODUCT_SKU_ID_LIST_KEY = "PRODUCT:SKU:ID_LIST";

    /*
     * sku 主键集合 redis key
     */
    public static final String PRODUCT_SKU_NEW_ID_LIST_KEY = "PRODUCT:SKU:NEW_ID_LIST";

    /**
     * sku 信息 redis key 前缀
     */
    public static final String PRODUCT_SKU_INFO_KEY_PREFIX = "PRODUCT:SKU:INFO:";

    /**
     * sku 信息 redis key
     */
    public static final String PRODUCT_SKU_INFO_KEY = "PRODUCT:SKU:INFO:%s";

    /**
     * sku 信息 redis key 前缀
     */
    public static final String PRODUCT_SKU_LOCK_KEY_PREFIX = "PRODUCT:SKU:LOCK:";

    /**
     * sku 信息 redis key
     */
    public static final String PRODUCT_SKU_LOCK_KEY = "PRODUCT:SKU:LOCK:%s";

}
